import request from "../../request";
import { type R, type DeepRequired } from "../../interface";
import { type AxiosRequestConfig } from "axios";

/**
 * 根据 ID 获取 Media 信息
 * /media/{id}
 */
export function getMediaById(params: GetMediaByIdParams, config?: AxiosRequestConfig) {
    return request.get<DeepRequired<R>>(`/media/${params.id}`, config);
}

export interface GetMediaByIdParams {
    id: number;
}
